package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.db.User;
import com.tanhua.domain.mongo.Publish;
import com.tanhua.domain.mongo.Video;
import com.tanhua.vo.PageResult;
import org.springframework.data.domain.PageRequest;

public interface VideoApi {

    /**
     * 保存小视频
     */
    void save(Video video);

    PageResult queryVideoList(Integer page, Integer pagesize);

    void saveFollowUser(Long userId, Long followUserId);

    void removeFollowUser(Long userId, Long followUserId);

    PageResult queryVideosByUserId(Integer page, Integer pagesize, Long userId);

    Publish findById(String publishId);
}
